% autowrite
clc
clear all
load TP06_Y_RJ_fin_R5_G250k_MR7.mat final_result;
filename='TP06_Y_RJ_fin_R5_G250k_MR7.xls';
year_list=[1997:2010]';
%year_list=[2005:2010]';
year_list_text=num2str(year_list);
% quarter_list=[1:4]';
% quarter_list_text=num2str(quarter_list);

for i=1:13
% for j=1:4
xx(:,:)=final_result(i,:,:);
sheetlist=strcat('',year_list_text(i,:),'');
xlswrite(filename, xx, sheetlist);
clear xx sheetlist
% end
end

